/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package enteties.article;

import java.util.Collection;
import java.util.List;
import javax.ejb.Local;
import util.article.GroupDetails;

/**
 *
 * @author Joris
 */
@Local
public interface Group1FacadeLocal {

    void create(Group1 group1);

    void edit(Group1 group1);

    void remove(Group1 group1);

    Group1 find(Object id);

    List<Group1> findAll();

    List<Group1> findRange(int[] range);

    int count();

    public Integer create(GroupDetails gd);

    public Group1 findGroupByName(String name);

    public GroupDetails convert(Group1 g, boolean subGroups);

    public Collection<GroupDetails> convert(Collection<Group1> groups, boolean subGroups);

    public Collection<GroupDetails> getAllRootGroups();

    public void addGroupToParent(Integer parentId, Integer groupId);

    public void deleteGroup(Integer id);

    public void removeGroupFromParent(Integer parentId, Integer groupId);

    public void editGroup(GroupDetails gd);
    
}
